package com.stu;

import org.junit.jupiter.api.Test;

import java.util.Collections;
import java.util.List;

/**
 * @author zhuzi
 */
public class CollectListDemo {
	@Test
	public void singletonList() {
		List<String> list = Collections.singletonList("a");
		// list.add("b");//不能操作
		System.out.println(list);

	}
}
